<template>
  <div class="app">
    <!-- <navs></navs> -->
    <router-view></router-view>

    <!-- <footers></footers> -->
  </div>
</template>

<script>
import navs from "./components/navbar.vue";
import footers from "./components/footers.vue";

export default {
  components: {
    navs,
    footers,
  },
  data() {
    return {};
  },
  created() {
    document.title = "涛涛 不绝";
    if (window[this.$store.state._storageUrl].getItem("user")) {
      this.$router.push("/home/home2");
    } else {
      this.$router.push("/login");
    }
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="scss" >
* {
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  width: 100%;
  body {
    height: 100%;
    width: 100%;
    .app {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
